#! /bin/bash
clear
echo "input a file or directory name,please:"
read name
find $name -type f -perm +6000 2>error.txt>find.txt
array1=(`cat find.txt`)
ls -fl ${array1[*]}|cat -n|more -p
echo "enter the number you need to modify:"
read numbers
if [ $numbers = "0" ];then	
echo "The end......"
else	
echo "enter the number you want to change(saparated by a space)"		
	for((i=0;i<"$numbers";i=i+1))	
	do		
		read array2[$i]		
		let b=${array2[$i]}-1		
		chmod a-s ${array1[$b]}	
	done
for((j=0;j<"numbers";j=j+1))
do 	
let b=${array2[$j]}-1
ls -l ${array1[b]}
done
	echo "The end......"
fi

